package com.topscomm.file.util;

import java.util.Properties;

/**
 * yml文件读取
 * 
 * @description:
 * @author: donghang
 * @date: 2020年8月21日上午11:22:25
 * @modify:
 */
public class YamUtil {
	private static Properties ymlProperties = new Properties();

	public YamUtil(Properties properties) {
		ymlProperties = properties;
	}

	public static String getVal(String key) {
		return ymlProperties.getProperty(key);
	}

	public static String getVal(String key, String defaultValue) {
		return ymlProperties.getProperty(key, defaultValue);
	}
}
